from entity import User,Child,Parent

# user1 = User()
# user1.show()
# print(user1.count)

user2 = User("admin",18,"male","11111@qq.com")
print(User.count)   #通过类调类属性
User.count = 100
print(user2.count)

user2.phone = "157XXXXXXX"

user3 = User("ROOT",18,"male","11111@qq.com")
user3.show()
#User.show() 类名不可调用类方法
print("-----------------")
User.show1()
User.show2()

user4 = User
user5 = User
user6 = User("ry",18)
user7 = User("ry",18,"male")
user8 = User("ry",18,"male","11111@qq.com")


child1 = Child()
child1.show()
child1.study()
print(child1.name)
print(child1.age)